package cn.stack.springframework.test;

import cn.bugstack.springframework.context.support.ClassPathXmlApplicationContext;
import cn.stack.springframework.test.bean.IUserService11;
import org.junit.Test;

public class ApiTest12 {
    @Test
    public void test_aop(){
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:spring12.xml");
        IUserService11 userService12 = applicationContext.getBean("userService12", IUserService11.class);

        System.out.println("测试结果: "+userService12.queryUserInfo());
    }
}
